package task09;

public class TCL extends TV {
    boolean cloud;
    TCL(){}
    TCL(String brand,byte size,boolean cloud ){
        this.brand=brand;
        this.size=size;
        this.cloud=cloud;
    }


    @Override
    void output() {
         if(cloud==false){
          super.output();
         }else{
             System.out.println("子类方法：牌子是"+brand+"尺寸为"+size+"寸"+"是云电视");
         }
    }
}
